///BEGIN PHP PLATFORM ==========
#if defined(PLATFORM_PHP)
//use for developer mode 
#if DEVELOP_MODE
	//[server on viettel and use only for develeper] !very importance
#	if IS_RELEASE
#		define GC_DBSERVER_URL "127.0.0.1"
#		define GC_DBSERVER_PORT 11217
	//[server on local machine]
#	else
#		define GC_DBSERVER_URL "127.0.0.1"
#		define GC_DBSERVER_PORT 11214	
#	endif
//use for building release.
#else
#	define GC_DBSERVER_URL "127.0.0.1"
#	define GC_DBSERVER_PORT 11214
#endif

#define GC_DBOBJ	FunctionGamePlay::$static
#define GC_DBCONNECT() {if(!isset(GC_DBOBJ) || GC_DBOBJ==null){GC_DBOBJ = new Memcache;GC_DBOBJ->connect(GC_DBSERVER_URL, GC_DBSERVER_PORT) or die ("Could not connect");};}
#define GC_DBGET(key) GC_DBOBJ->get(key)
#define GC_DBSET(key,data) {if(GC_DBOBJ->get(key)==null)GC_DBOBJ->set(key,data);else GC_DBOBJ->replace(key,data);}
#define GC_DBDEL(key) GC_DBOBJ->delete(key)
#define GC_DBINC(key) {if(GC_DBOBJ->get(key)!=null)GC_DBOBJ->increment(key);else GC_DBOBJ->set(key,1);}
#define GC_DBCLOSE() {GC_DBOBJ->close();GC_DBOBJ=null;}
#endif //PLATFORM_PHP
///END PHP PLATFORM ==========


#define GC_TABLE_STATUS_INIT		0
#define GC_TABLE_STATUS_AVAILABLE	1
#define GC_TABLE_STATUS_PLAYING		2

#define GC_PLAYER_STATUS_JOIN		0
#define GC_PLAYER_STATUS_ACCEPT		1
#define GC_PLAYER_STATUS_LEAVE		2

#define CSOCIAL_SERVER_STATUS_UNKNOW				0
#define CSOCIAL_SERVER_STATUS_OK					1
#define CSOCIAL_SERVER_STATUS_NEED_CLIENT_UPDATE	2
#define CSOCIAL_SERVER_STATUS_MAINTAIN				3